{template header}

<div class="container">

<div class="row">


<div class="col-md-10">


  
<div class="row">

{loop $arrGift $key $item}

    <article class="col-xs-12 col-sm-3 col-md-3 col-lg-3 project-item fadeInLeft delay0d3s">
        <div class="project-panel">
            <a href="{tsUrl('gift','show',array('id'=>$item[giftid]))}" target="_blank">
                <div class="project-cover" style="background-image: url({if $item[photo]}{php echo tsXimg($item[photo],'gift','300','200',$item[path],'1')}{else}{SITE_URL}app/gift/skins/default/gift.jpg{/if})">

                </div>
            </a>
            <div class="project-title">
                <a href="{tsUrl('gift','show',array('id'=>$item[giftid]))}{$mylink}">{php echo(cututf8($item[title],0,24,true))}</a>
            </div>
            <div class="project-brief">
                属性：{if $item[cate]==0}志愿者福利{else}义卖物品{/if}<br/>
                有效期：{php echo date('Y-m-d H:i',$item[limittime])}<br/>
                {if $item[cate]==0}所需积分{else}定价{/if}：{$item['price']}<br/>
                物品数：{if $item[quota]}{$item[quota]}{else}不限{/if}<br/>
                下单数：{$item[count_userwish]}<br/>
                收货数：{$item[count_userdo]} <img style="float: right;width: 80px;height:auto" src="{SITE_URL}public/images/gift/{$item[status]}.png"> <br/>

            </div>

        </div>
    </article>
{/loop}  

  
</div>
  



<div class="clear"></div>
<div class="page">{$pageUrl}</div>


</div>

    <div class="col-md-2">

        <p><a class="btn btn-success btn-block" href="{tsUrl('gift','add')}">发布商品</a></p>

        <div class="list-group">
            <a class="list-group-item active" href="{tsUrl('gift')}">全部</a></li>
            {loop $arrType $key $item}
            <a class="list-group-item" href="{tsUrl('gift','type',array(id=>$item[typeid]))}">{$item[typename]}</a>
            {/loop}

        </div>

    </div>

</div>
</div>
{template footer}